package net.wanho.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * Author：汤小洋
 * Date：2023-08-24 9:42
 * Description：<描述>
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class User implements Serializable {
    // id,username,password,salt
    private Integer id;
    private String username;
    private String password;
    private String salt;

    private List<Role> roles; // 用户拥有的角色集合
}
